#ifndef PLANE_H
#define PLANE_H

#include "Game Engine/Header/d3dUtil.h"

class Plane
{
public:
	Plane(const D3DXVECTOR3& origin, const D3DXVECTOR3& normal);
	Plane(const D3DXVECTOR3& p1, const D3DXVECTOR3& p2, const D3DXVECTOR3& p3);

	bool isFrontFacingTo(const D3DXVECTOR3& direction) const;
	double signedDistanceTo(const D3DXVECTOR3& point) const;

	float equation[4];

	D3DXVECTOR3 origin;
	D3DXVECTOR3 normal;
};

#endif